package com.lc.tgxm.dialog;

import android.app.Dialog;
import android.content.Context;
import android.view.ViewGroup;

import com.lc.tgxm.R;
import com.zcx.helper.scale.ScaleScreenHelperFactory;


/**
 * BaseDialog
 * Created by Administrator on 2016/3/14.
 */
public class BaseDialog extends Dialog {

    public BaseDialog(Context context, int theme) {

        super(context, theme);

    }

    public BaseDialog(Context context) {

        super(context, R.style.BaseDialog);
        setCanceledOnTouchOutside(true);
    }

    @Override
    public void setContentView(int layoutResID) {

        super.setContentView(layoutResID);
        ScaleScreenHelperFactory.getInstance().loadViewGroup((ViewGroup) getWindow().getDecorView());

    }

}
